package entities;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="Amministratore")
public final class Amministratore implements Serializable {
	
	private static Amministratore admin = null;
	
	
	@Id
	private final String IDAmministratore = "ID-Admin";

	@Column(name="UserName", nullable=false, unique=true)
	private final String userName = "admin";

	@Column(name="Password", nullable=false, unique=false)
	private final String password = "admin";
	
    public static synchronized Amministratore getMioSingolo() {
        if (admin == null) {
            admin = new Amministratore();
        }
        return admin;
    }
    
    public String getUsername()
    {
    	return userName;
    }
    
    public String getID()
    {
    	return IDAmministratore;
    }
   
    

}
